package nc.ui.cad.cashcount;

import nc.itf.capub.para.FtConst;
import nc.itf.capub.para.ICDABillType;
import nc.ui.cad.btnaction.JSIFTButton;
import nc.ui.capub.baseui.MultiChildBillController;
import nc.ui.trade.base.AbstractBillUI;
import nc.ui.trade.businessaction.IBusinessActionType;
import nc.ui.trade.button.IBillButton;
import nc.vo.cad.cashcount.CashcountAggVO;
import nc.vo.cad.cashcount.CashcountBVO;
import nc.vo.cad.cashcount.CashcountVO;

public class CashcountCtrl extends MultiChildBillController {

	public CashcountCtrl() {
		super();
	}

	public CashcountCtrl(AbstractBillUI billUI) {
		super(billUI);
	}

	@Override
	public String getBillType() {
		return ICDABillType.CDA_XJLJS;
	}

	@Override
	public String[] getBillVoName() {
		return new String[]{
				CashcountAggVO.class.getName(),
				CashcountVO.class.getName(),
				CashcountBVO.class.getName()
		};
	}

	@Override
	public int[] getCardButtonAry() {
		 return new int[]{
                 IBillButton.Edit,
                 IBillButton.Line,
                 IBillButton.Delete,
                 IBillButton.Save,
                 IBillButton.Cancel,
                 IBillButton.Audit,
                 IBillButton.CancelAudit,
                 IBillButton.Return,
                 IBillButton.Print,
                 IBillButton.Refresh
         };
	}

	@Override
	public int[] getListButtonAry() {
		 return new int[]{
                 IBillButton.Query,
                 IBillButton.Edit,
   	             IBillButton.Audit,
   	             IBillButton.CancelAudit,
   	             IBillButton.Card, 
   	             IBillButton.Print,
   	             IBillButton.Refresh,
   	             JSIFTButton.CASHCOUNT
	     };
	}

	@Override
	public boolean isExistBillStatus() {
		return true;
	}

	@Override
	public boolean isShowListRowNo() {
		return true;
	}

	@Override
	public boolean isShowListTotal() {
		return true;
	}
	
	@Override
	public boolean isShowCardRowNo() {
		return true;
	}

	@Override
	public boolean isShowCardTotal() {
		return false;
	}
	
	@Override
	public boolean isShowNavigationBar() {
		return true;
	}

	@Override
	public int getBusinessActionType() {
		return IBusinessActionType.PLATFORM;	
	}

	@Override
	public int getNavigationModel() {
		return FtConst.PAGING_MODEL_RESEARCH;
	}

	@Override
	public boolean isBodyShowNavigationBar() {
		return true;
	}
}
